<?php
/**
 * Adminxtuser View for Extuser Component
 *
 * @package    AdminExtuser
 * @subpackage Components
 * @license        GNU/GPL
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();

jimport( 'joomla.application.component.view' );

/**
 * AdminExtuser View
 *
 * @package    AdminExtuser
 * @subpackage Components
 */
class ExtuserViewExtuser extends JView
{
    /**
     * Extuser view display method
     * @return void
     **/
    function display($tpl = null)
    {
    	global $mainframe, $option;

        JToolBarHelper::title( JText::_( 'Extuser Manager' ), 'generic.png' );
        JToolBarHelper::editList();

        $filter_type		= $mainframe->getUserStateFromRequest( "$option.filter_type",		'filter_type', 		0,			'string' );
        $search				= $mainframe->getUserStateFromRequest( "$option.search",			'search', 			'',			'string' );
		$search				= JString::strtolower( $search );

		$fields = 			$this->get('Fields');


		$lists['field'] =	JHTML::_('select.genericlist',   $fields, 'filter_type', 'class="inputbox" size="1"', 'value', 'text', "$filter_type" );

		// search filter
		$lists['search']= $search;

		$data = 			$this->get('Data');
		$pagination =& 		$this->get('Pagination');

		$this->assignRef( 'lists',			$lists);
		$this->assignRef( 'data', 			$data );
		$this->assignRef( 'pagination', 	$pagination);

        parent::display($tpl);
    }
}